package org.dromara.business.domain.bo;

import org.dromara.business.domain.LocationGg;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * CRUD地理位置业务对象 location_gg
 *
 * @author Lion Li
 * @date 2025-01-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = LocationGg.class, reverseConvertGenerate = false)
public class LocationGgBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 定位的地址
     */
    @NotBlank(message = "定位的地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String location;


}
